package it.lolled.core;

import java.util.Date;

public class ThreadLoop {
	public static void main(String[] argv) {
		App9GAG app9GAG = new App9GAG();
		AppMemeCenter appMemeCenter = new AppMemeCenter();
		for (int i = 0; i < 10000; i++) {
			System.out.println("\n\n\n\n\nexecution of thread: " + new Date());
			try {
				app9GAG.work();
				appMemeCenter.work();
				Thread.sleep(60000 * 10);
			} catch (Exception e) {
				System.out.printf("\n\n\n\n\n [error] of thread: ", e);
				e.printStackTrace();
			}
		}

		System.out.println("Both loops started.");
	}
}
